package com.cheer.enums;

/**
 * @author chufangzheng
 * 活动状态
 */
public enum ActivityTypeEnum {

    CHECK(1, "签到打卡"),
    IMAGE_TEXT(2, "图文展示");

    private Integer code;
    private String message;

    ActivityTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


    public static ActivityTypeEnum getEnumByCode(Integer code){
        if(code.equals(CHECK.code)){
            return CHECK;
        }
        if(code.equals(IMAGE_TEXT.code)){
            return IMAGE_TEXT;
        }
        return null;
    }

}
